package com.wc.alorithm_blue_bridge._数学知识.推导.报数游戏;

import java.io.PrintWriter;

/**
 * @Author congge
 * @Date 2025/3/17 20:42
 * @description
 * https://www.lanqiao.cn/courses/46292/learning/?id=3441399&compatibility=false
 */
public class Main {
    /**
     * 规律：
     * 每十个 + 120
     * 因为多了 4
     * 所以观察一下第 4 个的规律, 发现也是从4开始  每十个 + 120
     * 那也就是 48 + 20242024202 * 120
     */
    static long cnt = 202420242024L;
    static PrintWriter out = new PrintWriter(System.out);
    static int id = 0;

    public static void main(String[] args) {
        int n = 100000010;
        for (int i = 1; i <= n; i++) {
            if (i % 20 == 0 || i % 24 == 0) {
                id++;
                if (id % 10 == 1) out.printf("%d %d ", id, i);
                if (id % 10 == 2) out.printf("%d %d ", id, i);
                if (id % 10 == 3) out.printf("%d %d ", id, i);
                if (id % 10 == 4) out.printf("%d %d ", id, i);
            }

            if (i % 20 == 0 && i % 24 == 0) {
                out.printf("%d %d\n", id, i);
                if (id == 200) break;
            }
        }
        out.println(20242024202L * 120 + 48);
        out.flush();
    }
}
